<ul id="nav">
	{foreach from=$sitemenus item=sm name=menu} 
	<li class="{if $sm->url==$current}current{/if} {if ($sm->title|substr_count:"<br>")==1}double-line{elseif ($sm->title|substr_count:"<br>")==2}triple-line{/if}"><a href="/{$sm->url}" title="{$sm->title}">{$sm->title}</a>
	{assign var=id value=$sm->getPk()}
		{if $submenus.$id}
		<ul> 
			{foreach from=$submenus.$id item=ttt}
			<li><a href="/{$ttt->tech_url}">{$ttt->name|stripslashes}</a></li>
			{/foreach}
		</ul>
		{/if}
	</li>
	{if !$smarty.foreach.menu.last}<li class="msep"><img src="/img/m3.png" width="3" height="73" border="0" alt="" /></li>{/if}
	{/foreach}	
</ul>

